<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/> 
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('queryForm');
}

function exportExcel(){
	var formObj = getTableForm();
	formObj.action = "v_excel_sale_month_list.do";
	formObj.submit();
}

</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  销售月报表  - <@s.m "global.list"/></div>
	<form class="ropt">
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form action="v_sale_month_list.do" method="post" style="padding-top:5px;" id="queryForm" >
<div>
销售日期：<input type="text" name="beginDate" value="${beginDate!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>
至
<input type="text" name="endDate" value="${endDate!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>
<input class="query" type="submit" value="<@s.m "global.query"/>"/> 
&nbsp;&nbsp;&nbsp;
<input  type="button" value="导出excel" onclick="exportExcel()"/>
</div>
</form>
<form id="tableForm" method="post">
<@p.table value=pagination;orders,i,has_next><#rt/>
	<@p.column code="编号">${orders.num!}</@p.column><#t/>
	<@p.column code="商品名称">${orders.product_name!}</@p.column><#t/>
	<@p.column code="规格">${orders.sku_name!}</@p.column><#t/>
	<@p.column code="单价（元）">${(orders.price)!""}</@p.column><#t/>
	<@p.column code="数量">${(orders.sale_count)!""}</@p.column><#t/>
	<@p.column code="金额（元）">${(orders.sale_money_count)!}</@p.column><#t/>
</@p.table>
<#if paymentMoney??&&paymentMoney?size gt 0>
   <#list paymentMoney as map>
    <table>
	<tr>
		<td>余额支付金额：</td>
		<td>${(map.balance_pay_money)!0} 元；</td>
		<td>微信支付金额：</td>
		<td>${(map.weixin_pay_money)!0} 元；</td>
		<td>货到付款金额：</td>
		<td>${(map.huodao_pay_money)!0} 元；</td>
		<td>优惠劵金额：</td>
		<td>${(map.youhui_pay_money)!0} 元；</td>
		<!-- <td>赠送金额：</td>
		<td>${zengsong_pay_money!0} 元；</td> -->
	</tr>
	</table>
  </#list>
 </#if>
</form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>